export default function useHomeBarHeight() {
  const homeBarHeight = ref(0)

  onMounted(() => {
    homeBarHeight.value = uni.getSystemInfoSync().safeAreaInsets
      ? uni.getSystemInfoSync().safeAreaInsets!.bottom!
      : 0
  })

  return homeBarHeight
}
